﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 收货单新增字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "BinNo",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "NoticeLineNo",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "NoticeNo",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "OrderUnit",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "StorageArea",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Workers",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MaterialSerialize",
                table: "TReceivingBillDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MaterialSerializeBatchNo",
                table: "TReceivingBillDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MaterialSerializeId",
                table: "TReceivingBillDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SerialnoParam",
                table: "TReceivingBillDetails",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BinNo",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "NoticeLineNo",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "NoticeNo",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "OrderUnit",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "StorageArea",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "Workers",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "MaterialSerialize",
                table: "TReceivingBillDetails");

            migrationBuilder.DropColumn(
                name: "MaterialSerializeBatchNo",
                table: "TReceivingBillDetails");

            migrationBuilder.DropColumn(
                name: "MaterialSerializeId",
                table: "TReceivingBillDetails");

            migrationBuilder.DropColumn(
                name: "SerialnoParam",
                table: "TReceivingBillDetails");
        }
    }
}
